python pandas drop column by index

40

python pandas drop column by index -

df.drop(a_dataframe.columns[0], axis=1, inplace=True)

df.drop index -

df.reset_index(drop=True, inplace=True)

pandas dataframe delete column -

del df['column_name']

Comments

Submit
0 Comments